package com.aiyige.model;

public class Oauth2Login {
    String account;
    String password;

    public Oauth2Login() {
    }

    private Oauth2Login(Builder builder) {
        setAccount(builder.account);
        setPassword(builder.password);
    }

    public Oauth2Login(String account, String password) {
        this.account = account;
        this.password = password;
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public static final class Builder {
        private String account;
        private String password;

        private Builder() {
        }

        public Builder account(String val) {
            account = val;
            return this;
        }

        public Builder password(String val) {
            password = val;
            return this;
        }

        public Oauth2Login build() {
            return new Oauth2Login(this);
        }
    }
}
